# coding=utf-8
a = float(input())
b = a - int(a)
if b < 0.5:
    print(int(a))
else:
    print(int(a)+1)